/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.integral.web.controller.shipping;

import com.medusa.gruul.common.core.util.Result;
import com.medusa.gruul.integral.service.IGaoDeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaozheng
 */
@RestController
/**
 * @author zhaozheng
 */ /**
 * @author zhaozheng
 */
public class GaoDeController {
    @Autowired
    private IGaoDeService gaoDeService;

    @GetMapping(value = "/get/config/district")
    public Result configDistrict(@RequestParam(required = false) String keywords,
                                 @RequestParam(required = false) String subdistrict,
                                 @RequestParam(required = false) Integer page,
                                 @RequestParam(required = false) Integer offset,
                                 @RequestParam(required = false) String extensions,
                                 @RequestParam(required = false) String filter,
                                 @RequestParam(required = false) String callback,
                                 @RequestParam(required = false) String output) {

        return this.gaoDeService.configDistrict(keywords, subdistrict, page, offset, extensions, filter, callback, output);
    }

    @GetMapping(value = "/get/apiSearch")
    public Result apiSearch(@RequestParam(required = false) String location,
                            @RequestParam(required = false) String keywords,
                            @RequestParam(required = false) String types,
                            @RequestParam(required = false) String city,
                            @RequestParam(required = false) String radius,
                            @RequestParam(required = false) String sortrule,
                            @RequestParam(required = false) Integer offset,
                            @RequestParam(required = false) Integer page,
                            @RequestParam(required = false) String extensions,
                            @RequestParam(required = false) String sig,
                            @RequestParam(required = false) String output,
                            @RequestParam(required = false) String callback) {
        return this.gaoDeService.apiSearch(location, keywords, types, city, radius, sortrule, offset, page, extensions, sig, output, callback);
    }
}
